<div id="title_right">
	<p id="title_right_left"></p>
	<div id="title_right_center">
		<p class="chu_title">DANH SÁCH KHÁCH HÀNG</p>
	</div>
	<p id="title_right_right"></p>
</div>

<?php

if($data)
{?>
<table class="table">
	<tr class="mau2">
		<td>STT</td>
		<td>Tên khách hàng</td>
		<td>Địa chỉ</td>
		<td>Số điện thoại</td>
		<td>Email</td>
		<td><img src="public/images/b_edit.png" /> Sửa</td>
		<td><img src="public/images/b_drop.png" /> Xóa</td>
	</tr>

	<?php
	$i=1;

	foreach ($data['list'] as $key => $value) {

		if($i%2==0){
			echo "<tr class='mau'>";
		}else
		{
			echo "<tr>";
		}
		?>
	<td><?php echo $i;?></td>
	<td><?php echo $value['TenKH'];?></td>
	<td><?php echo $value['DiaChi'];?></td>
	<td><?php echo $value['SDT'];?></td>
	<td><?php echo $value['Email'];?></td>
	
	<td><a href="admin.php?mod=updatekhachhang&ma=<?php echo $value['MaKH']?>">
			Sửa </a></td>
	<td><a href="admin.php?mod=delkhachhang&ma=<?php echo $value['MaKH']?>">
			Xóa </a></td>
	</tr>
	<?php
	$i++;
	}
	?>
	
</table>
<?php }?>

<?php
//Xuat phan trang 
	 echo "<p align='center'>";
	 echo $pagelist;
	 echo "</p>";
?>